#ifndef CLIENTLIST_H_
#define CLIENTLIST_H_
#include "../serverDefines.h"

/**
 * author: Assaf Paz.
 * 
 * initializeClientList
 * 
 * initilize the clientList to empty values
 */
void initializeClientList();

/**
 * author: Assaf Paz.
 * 
 * addClient
 * 
 * pid - client process ID to add to the container, pid serve as a key
 * sockfd - the stream that links between the client and server
 * 
 * add a client to the container
 */
BOOL addClient(int pid, int sockfd);

/**
 * author: Assaf Paz.
 * 
 * removeClient
 * 
 * pid - client process ID to add to the container
 * 
 * remove the client with the given pid from the container
 * and close the stream to the client
 */
void removeClient(int pid);

/**
 * author: Assaf Paz.
 * 
 * clearClientList
 * 
 * clear the client container and close all of the streams to the clients
 */
void clearClientList();

#endif /*CLIENT_H_*/
